<template>
  <div class="common-layout">
    <router-view/>
  </div>
</template>

<script>
export default {
  mounted () {
    if (this.$route.path !== '/login') {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="scss">
.common-layout {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f7fa;
}
</style>
